﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace NCC_SOP
{
    public partial class fastFacts : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }


        protected void RadGrid1_PreRender(object sender, System.EventArgs e)
        {
            if (this.staticReportList.MasterTableView.FilterExpression != string.Empty)
            {
                RefreshCombos();
            }


        }


        protected void RefreshCombos()
        {
            SqlDataSource2.SelectCommand = SqlDataSource2.SelectCommand + " WHERE " + staticReportList.MasterTableView.FilterExpression.ToString();
            SqlDataSource3.SelectCommand = SqlDataSource3.SelectCommand + " WHERE " + staticReportList.MasterTableView.FilterExpression.ToString();
            staticReportList.MasterTableView.Rebind();
        }
    }
}